<?php
  $host   =   "http://";
  $host   .=   $_SERVER['HTTP_HOST'];   
  define("APP_HOST",$host."/farmer/");
  function setlev($lev){
  		$ret="";
		for ($i=0;$i<$lev;$i++){
			$ret=$ret."../";
		}
		return $ret;
  }
?>
